#ifndef __INSULATIONCHECK_H__
#define __INSULATIONCHECK_H__
#include "stm32f7xx_hal.h"
#include "ChargeCtrl.h"



typedef enum 
{
	ISO_Invalid = 0,
	ISO_Valid   = 1,
	ISO_Warning = 2,
	ISO_Fault   = 3
}EVSE_IsoStatusE;

typedef enum
{
	isoInit = 0,
	isoStart,
	isoRuning,
	isoStop
	
}EVSE_IsoRunStatusE;


void insolutionInitial(void);
//set 1  start insulation detection.
void isoCableDetectionSet(uint8_t gunId ,uint32_t setMaxCarVoltage);

EVSE_IsoStatusE isoDetectionGet(uint8_t gunId);

void isoChargingProcessEntry(gunIdE gunId,int32_t maxVoltage);


int32_t isoGetXresistanceValue(gunIdE gunId);

int32_t isoGetYresistanceValue(gunIdE gunId);
int32_t isoGetInsulationStatu(gunIdE gunId);
int32_t isoGetInsulationStep(gunIdE gunId);

void isoChargDetectionEntry(void);

#endif  //__INSULATIONCHECK_H__



 